package com.qlh.camera.voice

import java.applet.Applet
import java.io.File

object PlayLocalVoiceHelper {


    /**只能播放wav**/
    fun playFile() {
        Thread {
            val filePath = File("F:\\Private_Project\\im_sound.wav")
            val audioClip = Applet.newAudioClip(filePath.toURL())
            audioClip.play()
        }.start()
    }
}